import service from "@/api/index";
//分类相关接口
const Category_API = "/api/Category/";
export default {
	GetCategoryDtoPageApi: (params: object) => {
		//获取资讯分类列表
		return service.post(`${Category_API}GetCategoryDtoPage`, params);
	},
	AddCategoryApi: (params: object) => {
		//新增资讯分类
		return service.post(`${Category_API}AddCategory`, params);
	},
	UpdateCategoryApi: (params: object) => {
		//更新资讯分类
		return service.post(`${Category_API}UpdateCategory`, params);
	},
	UpdateDeleteCategoryApi: (params: object) => {
		//更新资讯分类
		return service.post(`${Category_API}UpdateDeleteCategory`, params);
	},
	GetAllCategorysApi: (Id: string, companyId: string) => {
		//获取所有资讯分类
		return service.get(`${Category_API}GetAllCategorys?Id=` + Id + `&CompanyId=` + companyId);
	},
	GetByIdCategorysApi: (Id: string) => {
		//获取所有资讯分类
		return service.get(`${Category_API}GetByCategoryId?Id=` + Id);
	}
};
